package com.mt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mt.pojo.CommentLike;

import java.util.List;
import java.util.Map;

/**
 * @author Wang
 * @Description
 * @date 2020/12/4-11:24
 */

public interface CommentLikeService extends IService<CommentLike> {

    int getCommentLikeStatus(String userId, int commentId);

    boolean addLike2Redis(String userId, int commentId, int likeStatus);

    boolean addLikeList(List<CommentLike> list);

    boolean modifyLikeList(List<CommentLike> list);

    boolean saveLikeList2Db(List<CommentLike> list);

    boolean countLikeTotal(Map<Integer, Integer> likeMap);
}
